home *** CD-ROM | disk | FTP | other *** search
/ Network Supervisor's Toolkit / Network Supervisor's Toolkit.iso / tools / lu62 / verb.c < prev    next >
C/C++ Source or Header  |  1996-07-10  |  937b  |  52 lines

  1. #include <malloc.h>
  2. #include <stdlib.h>
  3. #include <memory.h>
  4. #include <string.h>
  5. #include <stdio.h>
  6. #include <include.h>
  7. #include <lucb.h>
  8.  
  9. /*
  10.  *  All verbs which not prepared to use yet.
  11.  *
  12.  * CopyRight 1995. Nicholas Poljakov all rights reserved.
  13.  *
  14.  */
  15.  
  16. struct rqb *call_appl(void *);
  17. extern struct lucb lu6;
  18.  
  19. test(p)
  20. char *p;
  21. {
  22. }
  23. senderr(p)
  24. char *p;
  25. {
  26. }
  27. open_acb(p)
  28. char *p;
  29. {
  30. }
  31. int close_acb(pACB)
  32. void *pACB;
  33. {
  34.  
  35. #if OS_TYPE == 0 /* MS_DOS */
  36.  
  37.     struct rqb *p_rqb;
  38.  
  39.     if ((p_rqb = (struct rqb *)calloc(1, sizeof(struct rqb))) == NULL) {
  40.          return -1;
  41.     }
  42.     p_rqb -> th.ra.stcb = APPL_CODE;
  43.     p_rqb -> th.ra.code = p_rqb -> th.ra.code & 0xbf; /* TOP */
  44.     p_rqb -> th.ra.code |= 0x80; /* RQB */
  45.     memcpy(p_rqb->th.ra.wa.area, lu6.lu_name, 8);
  46.     p_rqb -> th.ra.rparm.parm.parm1 = 7; /* Detach_LU */
  47.     call_appl(p_rqb);
  48.     free( p_rqb );
  49. #endif
  50.     return 0;
  51. }
  52.